package oop;

/**
 * 第一个类
 * 女朋友类
 *
 */
public class Girl {
	//属性
	static  String name;
	int age;
	double height; 
	
	public Girl(){}
	 
	//重载
	public Girl(String name,int age){
		this.name = name;
	}
	 

	//行为（方法）
	void buy(){
		int ok=100;
		System.out.println("去淘宝");
		System.out.println("去JD");
		System.out.println("去蘑菇街");
		name="TEMO";
	}
	
	//会做饭
	void cook(){
		System.out.println(name+"做蛋炒饭");
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getAge() {
		return age;
	}


	public void setAge(int age) {
		this.age = age;
	}


	public double getHeight() {
		return height;
	}


	public void setHeight(double height) {
		this.height = height;
	}
	
	@Override
	public String toString() {
		 
		return "我的名字"+name;
	}

}
